import datetime

from django.shortcuts import render

# Create your views here.

def index(request):
    """首页模板"""
    # 获取当前时间(中文)
    time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
    return render(request, 'index.html',context={'time':time})